import React from 'react';
class Input extends React.Component{
  handleChange=(e)=>{
    console.log(e);
    this.props.onChangeText(e.target.value)
  }
  render(){
    return <input onChange={this.handleChange}></input>
  }
}

class HomePage extends React.Component{
  handleTextChanged=(text)=>{
    console.log(text);
  }
  render(){
    return (
      <Input onChangeText={this.handleTextChanged}></Input>
    )
  }
}

export default HomePage;